package com.shsxt.crm.controller.sys;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.shsxt.crm.model.YgSystemMenuModel;
import com.shsxt.crm.service.ISystemMenuModeSerivce;
import com.shsxt.framework.context.BaseController;

/**
 * 用户信息管理
 * 
 * @author Mr.YongGan.Zhang
 */

@Controller
@RequestMapping("/sysmodule")
public class SystemModuleController extends BaseController {

	@Autowired
	private ISystemMenuModeSerivce systemMenuModeSerivce;

	@GetMapping("index.shtml")
	public String index() {
		return "module";
	}

	/**
	 * 查询系统菜单
	 * @return
	 */
	@GetMapping("/querySystemMenu")
	@ResponseBody
	public List<YgSystemMenuModel> querySystemMenu(String rid) {
		return systemMenuModeSerivce.querySystemMenu(rid);
	}

}
